package com.iot.ammeter.dto.web.campus;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName: RoomDTO
 * @Author: Basil
 * @Date: 2021/10/15 下午4:03
 * @Version: 1.0
 * @Description: 房间信息数据传输对象
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoomDTO {

    /**
     * 房间id
     */
    @ExcelIgnore
    private String roomId;
    /**
     * 房间号
     */
    @ExcelProperty(value = "房间号", index = 3)
    @ColumnWidth(60)
    private String roomNumber;
    /**
     * 校区id
     */
    @ExcelIgnore
    private String campusId;
    /**
     * 校区名称
     */
    @ExcelProperty(value = "校区名称", index = 1)
    @ColumnWidth(60)
    private String campusName;
    /**
     * 学校名称
     */
    @ExcelProperty(value = "学校名称", index = 0)
    @ColumnWidth(60)
    private String schoolName;
    /**
     * 楼栋id
     */
    @ExcelIgnore
    private String buildingId;
    /**
     * 楼栋名称
     */
    @ExcelProperty(value = "楼栋名称", index = 2)
    @ColumnWidth(60)
    private String buildingName;
    /**
     * 设备型号
     */
    @ExcelProperty(value = "设备型号", index = 5)
    @ColumnWidth(60)
    private String equipmentModel;
    /**
     * 设备ID(识别码)
     */
    @ExcelProperty(value = "设备ID", index = 6)
    @ColumnWidth(60)
    private String equipmentIdentifier;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注", index = 7)
    @ColumnWidth(60)
    private String remark;
    /**
     * 设备状态，0闲置，1使用
     */
    @ExcelProperty(value = "设备状态", index = 4)
    @ColumnWidth(60)
    private Integer equipmentStatus;
    /**
     * 批量添加时，传入的房间名称集合
     */
    @ExcelIgnore
    private List<String> roomNames;

}
